package server;

import java.io.Serializable;
import java.util.ArrayList;

public class Patient implements Serializable{
	
	private ArrayList<String> associated;
	private String name;

	public Patient(String name){
		this.name = name;
		associated = new ArrayList<String>();
	}
	
	public boolean isAssociated(String a){
		return associated.contains(a);
	}
	
	public void associateWith(String a){
		associated.add(a);
	}
	
	public String toString(){
		return name;
	}
}
